package xin.ganbo.entity;

import xin.ganbo.enums.PermissionType;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 资源权限
 * @author ganbo E-mail:bo.gan@56qq.com
 * @since 2017-11-07 17:41
 */
@Entity
@Table(name = "sys_permission")
public class Permission extends BaseEntity {

    private String name;
    private String url;
    private PermissionType type;
    private Integer sort;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public PermissionType getType() {
        return type;
    }

    public void setType(PermissionType type) {
        this.type = type;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }
}
